<?php

namespace App\Console\Commands\Erm;
use App\Repositories\ErmGrayRepository;
use Illuminate\Console\Command;

class AutoAddGray extends Command
{
    //命令名
    protected $signature = 'task:auto_add_gray';

    //命令描述
    protected $description = '自动加灰';

    public function __construct()
    {
        parent::__construct();
    }

    //业务处理
    public function handle()
    {
        $task = new ErmGrayRepository();
        //自动加灰
        $task->autoAddGray();
    }

}